fix requirejs dependency intermittent bug