bugfix (end wrong placed)