Fixed offline bug