Fixed bug on static tasks