fixed an issue with master key