Fixed possible NPE caused by #18
Merge remote-tracking branch 'origin/dev' into dev