Fixed some errors

Basically changed a few things to ushort?