Fix for #1279

Signed-off-by: Siddhartha Gupta <makerzzz.zzzz@gmail.com>