[Core] Fix search part move code in the controllers (fix #1).