Fix EntityManager

Forgot to pass $dir and $ns