Fix for bad byte cast.