Removing reduntant error message