fixed undefined error generated by contentscript response