bug fix

Fixed issue with select function ignoring $extra on line 157