Fixed errors from displaying unnecessarily