fix switching theme in development