Bug Fix

Fixed a fatal error