Fixed the bothersome error on non-project post types
Switched over to something that is much less likely to break on a different server setup.