fixed error, forgot to replace preg_replace for preg_replace_callback