Fixed error found by Kate