Fixed a bug in filtering out deploy jobs