check for instagram errors correctly