Fixed an issue on mock package controller