Fix name space issues in post type model loader