Fix bug in ball creation