Fixed a bug with reflections