Fixed bug introduced in commit 35a43876884e20fd152e3b16a3d161e73c2d86d7