fixed greyout bug