This worked for me:
Go to Settings -> Device lock and change "Automatic locking" to 5 minutes.
Than change number of tries to 5. Security code must have at least 6 numbers.
↧