fixed gjf problems