Fixed misplaced bracket crashing receive function