fix #6 - black screen issue

not much idea why the black screen issue exist, but I've follow this sample to fix such issue.