Fixed errors related to settings on first startup
Fixed inverted logic for lock window button