Fix for issue #15

Signed-off-by: Daniel Koo <danieljamin.koo@gmail.com>