Removed redundant variable from messageListener in bg