Added code to fix error that was causing error messages.