fixed bug perhpas