Wait till visiblebonds!=null before painting