fix null pointer in button clicker