Bugfix thx Ivam Plantevin