fixed rectlistener and graphics objects