fixed small orm issue