fixed issue with immediate execution