Fix draw crash (out of bounds entities)