Fix bug in AMD style inject call