Solution for error