Fixed bug introduced in commit e9b069ad86ac826c7fed249ae3e5603a057dcf6c