Fix modeling to work with astropy 0.3