fixed issue setting the position to a null value

If no figure was found the position can not be set
Removed old code and comments