Fix for mobile tablet themes fatal error