Bug in passing argument