fixed bug that nicolas noticed