Fixed problem with canvas rectangle fill