Exception fixed

An exception appeared when type in values bigger than FF.