fix sagement fault