fixed condision on def show