Fixed GUI crash