flip bug fixed