bug when applying Facade to flip functionality