Fixed issue #338, by adding more descriptive warning messages

Fixed probably issue #338