Fix for #1268

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