Fixed an unintended recursive function call introduced in the last commit a68308bafdbf4352da4b2dcc93117bd63bd17809.