Fix mod by zero when picking from an empty model