Fixed ir correctly this time