Fixed the bug resource and some of the controllers calls that use it