Set a condition to remove unecessary error