Fix NullPointer Bug in Open Cancel Button