fixing issue #4992

This pull should fix issue #4992