Fixed crash

woops forgot to check this before syncing.
fixed.