Fixed crash related to drawing frame OOB