dirty fix for undefined method type for nil => thinking-sphinx used table name as column name