Fixes Issue #1948

Fixes Issue #1948

Never done this before so if I'm doing something terribly wrong please tell me.