Fixed bug introduced by fb97ca4feea52e8fbc thanks @paulklint