Fixed GUI redering bug