fixed pm crash bug if you dont enter it correctly