Fixed part of #79
Kinda fixed #79 there is now an error message