corrected bugs and visibility output quality