Fix error for removing message