Fixed error

This happens in a variety of situations.