minor fix
better error handling