fix success check