fixed bug, app was crashing on closing password box