Version 1.0.1

Fix a bug that can cause a PHP warning in some cases.