Fix for issue #1284.

Fix for issue #1284.
seems like illogical and not clear error message