minor fix to support emberjs