Finally, working perfectly

Now it works in devel mode and if deployed to server, online and offline. :)