Fix coordinate plane and clicking bug