corrected bug triggered by options