Fixed a bug with the casting screen.