fixing bug with locks. this bug afected the SS and FS degins (final)