How to prevent short circuit in perovskite battery