SQL object result fixed