Fix for index out of range for fixtures and postgresql