Fix for #1270

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