fixed that weird bug