Fix for issue 89

This PR should fix https://github.com/astropy/photutils/issues/89.