fixed issue which caused unauthorized access to certain things