fixes if clause for members