fixed bug, introduced with previous commit