Optical endstop reverse

I installed a optical endstop to test.
It is working reverse when i trigger the stop de axle moves normaly.
When the stop is not triggerd the axle move only one way
Connection is buttom up + - s
The markings on the stop are V is 5 volt S is signal G is ground or is this not right ?

I set the endstop inverse to false and it works.
Is that the only thing i have change ?

should be