fixed bug, where rendered callback was not fired