Fixed coordinate problem and implemented ideal reflection