fixed black screen bug