fixed interactible rectangle null pointer exception