fix mastersalt safe check