clipped the values before pow(), no more GTK errors