Fixes class of error