correctings bugs