Another attempt at fixing an error