fixed work with locked template