Fixing skipping frame rendering