Fixed minor bug that complained when no error