BIAS: Fixed some issues.

Minor bug fixes have been implemented.