fixed the error positioning