fixes exception