fixed moving

rectangle wasn't able to come back into screen when moved outside