little bug with runtime error