hide function($matches) which causes fatal error