fixed a small bug retrieving SQL data