fix to error 6