bug fix.

Eliminate error message on console. Testing needs to be done.