Small bug fixing (visibility of Chart variable)