Small fix for beforeSend