Fixed bug on calling with cronjob, should work now