fix for stealjs compatibility