Fixed a minor issue returning before intended in renderer