Fixed black rectangle bug