fix exception on no pw