fixed bugs

Now it works ! ain’t that great !