fixed #56 and made it possible to add StateField to abstract Models