#15 Fixed error with infinite loop with graphic